package com.sky.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 非遗项目图片表
 * @TableName nonheritage_img
 */
@TableName(value ="nonheritage_img")
@Data
public class NonheritageImg implements Serializable {
    /**
     * 非遗项目图片id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 图片url
     */
    private String url;

    /**
     * 关联的非遗项目id
     */
    private Integer nonheritageId;

    /**
     * 描述信息
     */
    private String description;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}